Repository navigation
LDEV-6627 accept a bundle jar as additional bundle location - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lucee core passes the entries of `this.javasettings.bundles` to `OSGiService.loadClass` / `getClassLoader` as `additionalBundleDirectories`. An entry can be a directory with bundle jars or a single bundle jar. `findJar`, `findJarVersion` and `findExporting` only handled directories (`dir.listFiles()`), so a jar entry never matched and the load failed with `no URL found for bundle [lucee.mockup:1.0.0.0]`.
Fixes the `checking OSGi Bundle` spec of `test/general/JavaSettings.cfc` in Lucee (lucee/Lucee#3849), which passes `bundles=["…/lucee-mockup-osgi-1.0.0.0.jar"]`. Not verified end to end against Lucee yet, only at unit level.
Not part of this PR: `loadMissing` looks for an exporting bundle for a missing package only in the own bundle directory, not in the additional locations.